package com.iweb.manager.service;

import com.iweb.manager.dao.RecordMapper;
import com.iweb.manager.model.record;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class RecordServiceImpl implements RecordService{

    @Autowired
    RecordMapper recordMapper;

    @Override
    public List<record> selectAllRecord(int user_id) {
        return recordMapper.selectAllRecord(user_id);
    }

    @Override
    public record selectOneRecord(record record) {
        return recordMapper.selectOneRecord(record);
    }

    @Override
    public int addOneRecord(record record) {
        return recordMapper.addOneRecord(record);
    }

    @Override
    public int deleteOneRecord(int recordid) {
        return recordMapper.deleteOneRecord(recordid);
    }
}
